import java.util.Scanner;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    private static void printDragon() {
        System.out.println("     /~\\");
        System.out.println("    /  ||  \\");
        System.out.println("   /    ||    \\");
        System.out.println("  /     ||     \\");
        System.out.println(" /      ||      \\");
        System.out.println("/_______||_______\\");
        System.out.println("       ( . .)");
        System.out.println("        \\  \\");
        System.out.println("^\\       \\__\\");

        // 打印下半部分的恐龙图案
        System.out.println("^\\                   \\^");
        System.out.println(" \\                   /");
        System.out.println("  \\                 /");
        System.out.println("   \\               /");
        System.out.println("    \\             /");
        System.out.println("     \\           /");
        System.out.println("      \\         /");
        System.out.println("       \\       /");
        System.out.println("        \\     /");
        System.out.println("         \\   /");
        System.out.println("          \\_/");
    }

    public static void main(String[] args) throws InterruptedException {
        int a[] = new int[10000];
        boolean sussOrFail = false;
        for(int i=1; i<=10000; i++) {
            a[i-1] = i;
        }
        System.out.print("请输入一个你心中的数，范围在1-10000之中，保守这个秘密，万万不可告诉他人~~~");
        Scanner reader = new Scanner(System.in);
        int answer = reader.nextInt();

        System.out.println("太棒了，命运的齿轮开始转动了，挑战14次内猜出这个数字！！！挑战成功可以召唤神龙~~~");
        for(int i=1; i<=14; i++) {
            System.out.print("第" + i + "次， 我猜： ");
            int guessNum = reader.nextInt();
            if(guessNum>answer) {
                System.out.println("太大了！");
            } else if(guessNum<answer) {
                System.out.println("太小了！");
            } else {
                sussOrFail = true;
                System.out.println("太棒了，挑战成功！猜对了！！！倒数三秒，神龙显灵！~！~！~");
                Thread.sleep(3000);
                printDragon();
                break;
            }
        }
        if(sussOrFail == false) {
            System.out.println("很抱歉，挑战失败。下次再来吧。");
        }
    }
}